package com.boot.project.core.model.system.vo;

import com.boot.project.core.model.system.entity.Resource;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
public class ResourceCheckedVo extends Resource {

    // 是否有这个权限
    private Boolean checked;
    // 是否展开菜单，固定是true
    private Boolean open = true;

    public ResourceCheckedVo(Resource resource) {
        BeanUtils.copyProperties(resource, this);
    }
}
